package com.study.strategy;

import org.springframework.stereotype.Component;

/**
 * @author zhuzi
 * 2024/12/12 21:52
 */
@Component
public class SubCommand implements Command {
    @Override
    public String operateType() {
        return "sub";
    }

    @Override
    public Integer execute(int a, int b) {
        return a - b;
    }
}
